function callFun(fun, name) {
  fun(name)
}

var sayHi = function (name) {
  console.log('hello ' + name)
}

callFun(sayHi, 'funlee')